﻿
using System.ComponentModel.Composition;
using ModularAndPlugin.WinApp.Composition;
using ModularAndPlugin.WinApp.Contracts;
using SailHero.Soft.FrameWork.IDomainRepositories.Contracts;

namespace UI.WinForm.Clients
{
    [ModuleAttibute("Clients")]
    public class ClientsModule : IModule
    {
        public ClientsModule()
        {
        
        }


        public string Name
        {
            get { return "Clients"; }
        }

        public IModuleHandler ModuleHandler
        {
            get
            {
                return ClientsCommandFacade.ModuleHandler;
            }
        }

        private static ITB_CLIENTSRepository _sys_U;


        [Import]
        public ITB_CLIENTSRepository tB_CLIENTSRepository
        {
            get { return _sys_U; }
            set { _sys_U = value; }
        }



        [ImportingConstructor()]
        public ClientsModule([Import(typeof(IModuleHandler))] IModuleHandler moduleHandler_)
        {
            ClientsCommandFacade.ModuleHandler = moduleHandler_;
        }



    }
}
